The radius of a circle drawn with
CIRCLE (320, 240), 50
is 50. (So the diameter— the distance across the circle—is 100.)
You can do arithmetic with the numbers used with graphics commands. Here is the program that draws a circle in the center of the screen again; this time we let the computer calculate the center:
' Draw a circle at the center of the screen SCREEN 12 COLOR 7 CIRCLE (640 / 2, 480 / 2), 50 END
The arithmetic is done first before the
CIRCLE
statement draws the circle,
so the circle will be drawn at
Modify the above program so that it draws a circle that has TWICE the radius of the original.